Python | Set Difference in list of dictionaries
The difference of two lists have been discussed many times, but sometimes we have a large number of data and we need to find the difference i.e the elements in dict2 not in 1 to reduce the redundancies. Let’s discuss certain ways in which this can be done....
read more
Python | Ways to sort list of strings in case-insensitive manner
Given a list of strings, A task is to sort the strings in a case-insensitive manner. Given below are a few methods to solve the task....
read more
Python | Get first element with maximum value in list of tuples
In Python, we can bind structural information in form of tuples and then can retrieve the same. But sometimes we require the information of tuple corresponding to maximum value of other tuple indexes. This functionality has many applications such as ranking. Let’s discuss certain ways in which this can be achieved....
read more
Python | Tokenizing strings in list of strings
Sometimes, while working with data, we need to perform the string tokenization of the strings that we might get as an input as list of strings. This has a usecase in many application of Machine Learning. Let’s discuss certain ways in which this can be done....
read more
Python | Convert list to Python arrayConvert List to Array Python
Sometimes while working in Python we can have a problem in which we need to restrict the data elements to just one type. A list can be heterogeneous, can have data of multiple data types and it is sometimes undesirable. There is a need to convert this to a data structure that restricts the type of data....
read more
Python | Check if two lists have at-least one element common
Given two lists a, b. Check if two lists have at least one element common in them....
read more
Python – Records Maxima in List of Tuples
Sometimes, while working with records, we can have a problem in which we need to the maximum all the columns of a container of lists that are tuples. This kind of application is common in the web development domain. Let’s discuss certain ways in which this task can be performed....
read more
Python | Least Value test in Dictionary
While working with dictionary, we might come to a problem in which we require to ensure that all the values are atleast K in dictionary. This kind of problem can occur while checking status of start or checking for a bug/action that could have occurred. Let’s discuss certain ways in which this task can be performed....
read more
Python | Arrange Tuples consecutively in list
Sometimes, while working with tuple list, we may require a case in which we require that a tuple starts from the end of previous tuple, i.e the element 0 of every tuple should be equal to ending element of tuple in list of tuple. This type of problem and sorting is useful in competitive programming. Let’s discuss way in which this problem can be solved....
read more
Python – Concatenate Ranged Values in String list
Given list of strings, perform concatenation of ranged values from the Strings list....
read more
Python program to Reverse a range in list
Given a List, our task is to write a Python program to reverse a range in the list....
read more
Python Program to replace list elements within a range with a given number
Given a range, the task here  is to write a python program that can update the list elements falling under a given index range with a specified number....
read more